package com.haima.domin;

public class Man {
    private String name;
    private int age;
    private Woman woman;

    public Man() {
    }

    public Man(String name, int age, Woman woman) {
        this.name = name;
        this.age = age;
        this.woman = woman;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Woman getWoman() {
        return woman;
    }

    public void setWoman(Woman woman) {
        this.woman = woman;
    }

    public void WoManInfo() {
        System.out.println(name + "老婆的姓名叫" + woman.getName() + ",今年" + woman.getAge() + "岁。");
    }
}
